MODULE_NAME :=netlink_kernel
obj-m :=$(MODULE_NAME).o

KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

all:
	$(MAKE) -C $(KERNELDIR) M=$(PWD)
	rm -rf *.o *~ core .depend .*.cmd  *.mod.c .tmp_versions Module.* modules.order
clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
